/*     */ package nc.pubimpl.mmpac.dmo.pu;
/*     */ 
/*     */ import java.util.ArrayList;
/*     */ import java.util.List;
/*     */ import nc.bs.mmpac.dmo.bo.DmoCheckmmdpacUseBO;
/*     */ import nc.bs.mmpac.dmo.bp.rewrite.DmoPuRewriteBP;
/*     */ import nc.bs.mmpac.dmo.bp.rewrite.DmoScRewriteBP;
/*     */ import nc.pubitf.mmpac.dmo.pu.IPublicDmoService4Pu;
/*     */ import nc.util.mmf.framework.base.MMValueCheck;
/*     */ import nc.vo.mmpac.dmo.param.DmoRewriteParaForTurn;
/*     */ import nc.vo.pub.BusinessException;
/*     */ import nc.vo.pubapp.pattern.exception.ExceptionUtils;
/*     */ 
/*     */ 
/*     */ public class PublicDmoService4PuImpl
/*     */   implements IPublicDmoService4Pu
/*     */ {
/*     */   public void rewriteDmo4PrayOrder(DmoRewriteParaForTurn[] paras) throws BusinessException {
/*     */     try {
/*  20 */       if (MMValueCheck.isEmpty(paras)) {
/*     */         return;
/*     */       }
/*     */       
/*  24 */       DmoCheckmmdpacUseBO.checkmoudle();
/*     */       
/*  26 */       List<DmoRewriteParaForTurn> puList = new ArrayList<DmoRewriteParaForTurn>();
/*  27 */       List<DmoRewriteParaForTurn> scList = new ArrayList<DmoRewriteParaForTurn>();
/*  28 */       for (DmoRewriteParaForTurn para : paras) {
/*  29 */         if (para.getBsc().booleanValue()) {
/*  30 */           scList.add(para);
/*     */         } else {
/*     */           
/*  33 */           puList.add(para);
/*     */         } 
/*     */       } 
/*  36 */       if (scList.size() > 0) {
/*  37 */         DmoScRewriteBP rewriteScBp = new DmoScRewriteBP();
/*  38 */         rewriteScBp.rewriteDmo4SCOrder((DmoRewriteParaForTurn[])scList.toArray(new DmoRewriteParaForTurn[0]));
/*     */       } 
/*  40 */       if (puList.size() > 0) {
/*  41 */         DmoPuRewriteBP rewritePuBP = new DmoPuRewriteBP();
/*  42 */         rewritePuBP.rewriteDmo4PuOrder((DmoRewriteParaForTurn[])puList.toArray(new DmoRewriteParaForTurn[0]));
/*     */       }
/*     */     
/*     */     }
/*  46 */     catch (Exception e) {
/*  47 */       ExceptionUtils.marsh(e);
/*     */     } 
/*     */   }
/*     */ 
/*     */ 
/*     */   
/*     */   public void rewriteDmo4PuOrder(DmoRewriteParaForTurn[] paras) throws BusinessException {
/*  54 */     if (MMValueCheck.isEmpty(paras)) {
/*     */       return;
/*     */     }
/*     */     
/*  58 */     DmoCheckmmdpacUseBO.checkmoudle();
/*  59 */     DmoPuRewriteBP rewritePuBP = new DmoPuRewriteBP();
/*     */     try {
/*  61 */       rewritePuBP.rewriteDmo4PuOrder(paras);
/*     */     }
/*  63 */     catch (Exception e) {
/*  64 */       ExceptionUtils.marsh(e);
/*     */     } 
/*     */   }
/*     */ 
/*     */   
/*     */   public void rewriteDmo4PrayOrderSagasCheck(DmoRewriteParaForTurn[] paras) throws BusinessException {
/*     */     try {
/*  71 */       if (MMValueCheck.isEmpty(paras)) {
/*     */         return;
/*     */       }
/*     */       
/*  75 */       DmoCheckmmdpacUseBO.checkmoudle();
/*     */       
/*  77 */       List<DmoRewriteParaForTurn> puList = new ArrayList<DmoRewriteParaForTurn>();
/*  78 */       List<DmoRewriteParaForTurn> scList = new ArrayList<DmoRewriteParaForTurn>();
/*  79 */       for (DmoRewriteParaForTurn para : paras) {
/*  80 */         if (para.getBsc().booleanValue()) {
/*  81 */           scList.add(para);
/*     */         } else {
/*     */           
/*  84 */           puList.add(para);
/*     */         } 
/*     */       } 
/*  87 */       if (scList.size() > 0) {
/*  88 */         DmoScRewriteBP rewriteScBp = new DmoScRewriteBP();
/*  89 */         rewriteScBp.rewriteDmo4SCOrderSagasCheck((DmoRewriteParaForTurn[])scList.toArray(new DmoRewriteParaForTurn[0]));
/*     */       } 
/*  91 */       if (puList.size() > 0) {
/*  92 */         DmoPuRewriteBP rewritePuBP = new DmoPuRewriteBP();
/*  93 */         rewritePuBP.rewriteDmo4PuOrderSagasCheck((DmoRewriteParaForTurn[])puList.toArray(new DmoRewriteParaForTurn[0]));
/*     */       }
/*     */     
/*     */     }
/*  97 */     catch (Exception e) {
/*  98 */       ExceptionUtils.marsh(e);
/*     */     } 
/*     */   }
/*     */ 
/*     */ 
/*     */   
/*     */   public void rewriteDmo4PuOrderSagasCheck(DmoRewriteParaForTurn[] paras) throws BusinessException {
/* 105 */     if (MMValueCheck.isEmpty(paras)) {
/*     */       return;
/*     */     }
/*     */     
/* 109 */     DmoCheckmmdpacUseBO.checkmoudle();
/* 110 */     DmoPuRewriteBP rewritePuBP = new DmoPuRewriteBP();
/*     */     try {
/* 112 */       rewritePuBP.rewriteDmo4PuOrderSagasCheck(paras);
/*     */     }
/* 114 */     catch (Exception e) {
/* 115 */       ExceptionUtils.marsh(e);
/*     */     } 
/*     */   }
/*     */ }


/* Location:              E:\zhuhai_ncc\NCC2111\modules\mmpac\META-INF\lib\mmpac_dmo.jar!/nc/pubimpl/mmpac/dmo/pu/PublicDmoService4PuImpl.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.0.7
 */